package CH07.OceanWorld;

/**
 * Created by lenovo on 2016/3/27.
 */

public class FlyingFish extends Fish implements Flyer {
    public FlyingFish(String name){
        super(name);
    }

    @Override
    public void swim(){
        System.out.printf("飞鱼 %s 游泳%n",name);
    }

    @Override
    public void fly(){
        System.out.println("飞鱼会飞");
    }
}
